function chooseMatch(oid,vid,eid){
	$.post("/happinesshome/back/backhandle/choose",{oid:oid,vid:vid,eid:eid},function(data){
		if(data.success){
			alert("您已匹配成功，请通过短信或电话告知志愿者！");
		}else{
			alert("没有匹配成功，请重新匹配！");
		}
	},"json");
}
function deleteMatch(oid,vid,eid){
	if(confirm("确定要删除此条服务申请吗？")){
		$.post("/happinesshome/back/backhandle/delete",{oid:oid,vid:vid,eid:eid},function(data){
			if(data.success){
				alert("您已删除成功，请告知老人志愿服务申请失败！");
			}else{
				alert("没有删除成功，请重新删除！");
			}
		},"json");
	}else{
		return false;
	}
}
function refresh(){
	$.post("/happinesshome/back/backhandle/refresh",function(data){
		if(data.success){
			location.href="/back/backHome.jsp";
		}
	},"json");
}
function assessVolunteer(aid,vid,eid){
	var scoreCount=$("#score"+aid).text();
	var aid=aid;
	var vid=vid;
	var eid=eid;
	$.post("/happinesshome/back/backhandle/assess",{aid:aid,vid:vid,eid:eid,score:scoreCount},function(data){
		if(data.success){
			refresh();
		}
	},"json");
}